﻿using Unity.Mathematics;
using UnityEngine;
using Yoozoo.Gameplay.RTS.Proto;

namespace Yoozoo.Gameplay.RTS
{
    public static class MarchUtils
    {
        private static Vector3 vector3;

        public static Vector3 ToVector3(this Coordinate coordinate)
        {
            vector3.x = coordinate.xAxis;
            vector3.y = 0;
            vector3.z = coordinate.zAxis;
            return vector3;
        }

        private static float3 float3;
        public static float3 ToFloat3(this Coordinate coordinate)
        {
            float3.x = coordinate.xAxis;
            float3.y = 0;
            float3.z = coordinate.zAxis;
            return float3;
        }
    }
}
